<%--
  Created by IntelliJ IDEA.
  User: 494418174
  Date: 2020/2/24 0024
  Time: 11:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>测试页面</title>
    <script type="text/javascript" src="/js/jquery-3.3.1.min.js"></script>
    <script>
        function btnChk1() {
            $.post("/error/getJson1",function (date) {
                alert(date.msg)

            },"json")
        }
        function btnChk2() {
           $.post("/error/getJsonError",function (date) {
               alert(date.msg)
           },"json")
        }
    </script>
</head>
<body>
<h1>测试页面</h1>
<input type="button" value="正常测试" onclick="btnChk1()">
<input type="button" value="异常测试" onclick="btnChk2()">
</body>
</html>
